package com.lemobar.pay.model.wxpay.response;

import lombok.Data;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

/**
 * 微信撤销 请求参数
 * 付款码支付 https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=9_11&index=3
 */
@Data
@Root(name = "xml", strict = false)
public class WxPayReverseResponse {

    @Element(name = "return_code")
    private String returnCode;

    @Element(name = "return_msg")
    private String returnMsg;

    /* 以下字段在return_code为SUCCESS的时候有返回. */

    @Element(name = "appid", required = false)
    private String appid;

    @Element(name = "mch_id", required = false)
    private String mchId;

    @Element(name = "nonce_str", required = false)
    private String nonceStr;

    @Element(name = "sign", required = false)
    private String sign;

    @Element(name = "result_code", required = false)
    private String resultCode;

    @Element(name = "err_code", required = false)
    private String errCode;

    @Element(name = "err_code_des", required = false)
    private String errCodeDes;

    /**
     * 是否需要继续调用撤销，Y-需要，N-不需要
     */
    @Element(name = "recall", required = false)
    private String recall;

}
